FROM anapsix/alpine-java:8_server-jre_unlimited

MAINTAINER jeecgos@163.com

RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \
    && apk add --update ttf-dejavu fontconfig curl \
    && rm -rf /var/cache/apk/* \
    && curl --user download:download@#2021_LN http://218.60.4.232:10000/download/fonts/simsun.ttc -o /usr/share/fonts/simsun.ttc \
    && mkfontscale && mkfontdir && fc-cache \
    && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

WORKDIR /jeecg-boot

EXPOSE 8080

ADD ./target/basicplatform-system-3.4.4.jar ./

CMD sleep 5;java -Djava.security.egd=file:/dev/./urandom -jar basicplatform-system-3.4.4.jar --server.port=8080